<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="http://v3.bootcss.com/favicon.ico">
    
    <title>Examinee Score Search</title>
    
    <!-- Bootstrap core CSS -->
    <link rel="stylesheet" type="text/css" href="../css/bootstrap.css">
    
    <!-- Custom styles for this template -->
    <link rel="stylesheet" type="text/css" href="../css/navbar-fixed-top.css">
    
    <!-- Login styles for this page -->
    <link rel="stylesheet" type="text/css" href="../css/style.css">
    
    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
    <!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
    <script src="../js/ie-emulation-modes-warning.js"></script>
    
    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <style type="text/css">
    body{
    	font-family: '微软雅黑';
		background-image:url(../images/eLogin.png);
    }
    </style>
</head>

<body>

    <!-- Fixed navbar -->
    <nav class="navbar navbar-own navbar-default navbar-fixed-top">
      <div class="container">
        <div class="navbar-header">
          <!--<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>-->
          <a class="navbar-brand" href="#"><font color="#ffffff">自主招生管理系统</font></a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav">
          	<li><a href="ExamPerInfo.html"><font color="#fff">查看个人信息</font></a></li>
            <li class="dropdown">
            	<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><font color="#ffffff">考试流程</font><span class="caret"></span></a>
          		<ul class="dropdown-menu" role="menu">
                    <li><a id="sign">网上报名</a></li>
                    <li><a id = "selectEp">选择考点</a></li>
                    <li><a  id = "print">打印准考证</a></li>
                    <li><a href="ExamScore.html">查询成绩</a></li>
              	</ul>
            </li>
          </ul>
          <ul class="nav navbar-nav navbar-right">
            <li><a onclick = "logout()"><font color="#ffffff">注销</font></a></li>
          </ul>
        </div><!--/.nav-collapse -->
      </div>
    </nav>

    <div class="inner-info" align="center">

      <!-- Main component for a primary marketing message or call to action -->
      <div class="es-reg" align="center" style="max-width:1100px">
      	<div class="examProcess">
        	<h2>成绩单预览</h2>
            <form class="perInfoTable">
            	<table class="table table-hover table-bordered">
 	<tr>
                    	<td colspan="6" align="center" style="font-size:36px">2016年全国自主招生考试成绩单</td>
                    </tr>
                   <tr>
                    	<th colspan="1" >姓名</th><td colspan="1" id="name">Lourean</td><th colspan="1">性别</th><td colspan="1" id = "gender">女</td><td colspan="2" rowspan="4"><img id= "photo" width="150" height="200" src=""  alt="头像" /></td>
                    </tr>
                    <tr>
                    	<th colspan="1" >高考号</th><td colspan="3" id="eeid">xxxxxxxxxxxxx</td>
                    </tr>
                    <tr>
                    	<th colspan="1" >准考证号/报考号</th><td colspan="3" id = "registId">暂未分配</td>
                    </tr>
                    <tr>
                    	<th colspan="1" >身份证号</th><td colspan="3" id = "id">xxxxxxxx</td>
                    </tr>
                    <tr>
                    	<th colspan="1">报考学校</th><td colspan="5">ECNU</td>
                    </tr>
                    <tr>
                    	<th colspan="1" >报考专业</th><td colspan="5" id = "gType">SEI</td>
                    </tr>
                    <tr>
                    	<th colspan="1" >考点名称</th><td colspan="5" id = "epname">普陀区</td>
                    </tr>
                    <tr>
                    	<th colspan="1">考点地址</th><td colspan="5" id = "epAddress">xxx，xx，xxxxx，xxxxx</td>
                    </tr>
                    <tr>
                    	<th colspan="3">考试科目</th><th colspan="3">考试成绩</th>
                    </tr>
                    <tr>
                    	<td colspan="3" id ="sub"></td><td colspan="3" id = "score"></td>
                    </tr>
                </table>
            </form>
        </div>
               
        <div class="row">
        	<div class="col-md-3"></div>
        	<div class="col-md-3"><a class="btn btn-own btn-block" type="button" href="">确定</a><!--alert--></div>
        	<div class="col-md-3"><a class="btn btn-own btn-block" type="button" href="ExamProcess.html">返回</a></div>
            <div class="col-md-3"></div>
        </div>
      </div>
	</div> <!-- /container -->
    <footer class="examFooter">
        <p align="center">Copyright © 2015 ECNU・</p>
    </footer>


    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="../js/jquery.js"></script>
    <script src="../js/bootstrap.js"></script>
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <script src="../js/ie10-viewport-bug-workaround.js"></script>
	<script src="../js/isLogin.js"></script>
  	<script>
  	$(document).ready(
  			function() {
  				/*if (sessionStorage.getItem("state") != "2") {
  					location.href = "ExamProcess.html"
  				} else {*/
  					$.ajax({
  						url : '../queryUser.action',
  						type : 'post',
  						dataType : 'json',
  						data : {
  							userId : sessionStorage.getItem("userId")
  						},
  						success : function(data) {
  							var result = eval("(" + data + ")");
  							//alert(data);
  							if (result.flag == "true") {
  								var userInfo = eval("(" + result.userInfo + ")");
  								$("#id").text(userInfo.id);
  								$("#name").text(userInfo.name);
  								$("#photo").attr("src",
  										"../" + userInfo.userPhoto);
  								$("#eeid").text(userInfo.eeid);
  								if(userInfo.admitId!="\"null\"")
  									$("#registId").text(userInfo.admitId);
  								$("#gType").text(result.general);
  								$("#subType").text(result.sub);
  								$("#epname").text(result.ep);
  								$("#epAddress").text(result.epAddress);
  								$("#gender").text(userInfo.gender);
  								$("#sub").text(result.sub);
  								$("#score").text(result.score);
  							}

  						}

  					})
  				//}

  			})
  	</script>
  <script src="../js/logout.js"></script>
</body></html>